<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('action/view/add|template/default/header|action/view/menu|template/default/footer', '1230039604', 'action/view/add');?><?php $_TPL['titles'] = array('活动 - 首页'); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/style.css);
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="headerwarp">
<h1 class="logo"><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h1>
<ul class="menu">
<?php if($_SGLOBAL['supe_uid']) { ?>
<li><a href="space.php?do=home">首页</a></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a></li>
<li><a href="network.php">随便看看</a></li>

<?php if($_SGLOBAL['appmenu']) { ?>
<?php if($_SGLOBAL['appmenus']) { ?>
<li class="ucmenu" onmouseover="subop(this)" onmouseout="subop(this)" >
<a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a>
<ul id="ucmenu" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
</li>
<?php } else { ?>
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php } ?>
<?php } ?>

<li><a href="space.php?do=pm">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>
<?php if(!empty($_SGLOBAL['member']['notenum'])) { ?><li class="notify"><a href="space.php?do=notice"><?=$_SGLOBAL['member']['notenum']?>条新通知</a></li><?php } ?>
<?php } else { ?>
<li><a href="index.php">首页</a></li>
<li><a href="network.php">随便看看</a></li>
<li><a href="help.php">帮助</a></li>
<?php } ?>
</ul>

<div class="nav_account">
<?php if($_SGLOBAL['supe_uid']) { ?>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" alt="<?=$_SN[$_SGLOBAL['supe_uid']]?>" width="20" height="20" /></a>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="loginName"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?>(<?=$_SGLOBAL['supe_username']?>)<?php } ?>
<br />
<?php if(empty($_SCONFIG['closeinvite'])) { ?><a href="cp.php?ac=invite">邀请</a> | <?php } ?><a href="cp.php">设置</a> | <a href="cp.php?ac=privacy">隐私</a> | <a href="cp.php?ac=common&op=logout">退出</a>
<?php } else { ?>
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" width="20" height="20" /></a>
欢迎您<br>
<a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a> | 
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a>
<?php } ?>
</div>
</div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">

<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li><img src="image/app/mtag.gif"><a href="space.php?do=mtag">群组</a><em><a href="cp.php?ac=thread">话题</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>

<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit"  />
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="button">注册</a>
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">
<?php } ?>

<?php } ?>

<style type="text/css">
@import url(action/view/default.css);
</style>
<script type="text/javascript" src="action/view/base.js"></script>
<script type="text/javascript" src="action/view/upload.js"></script>
<h2 class="title"><img src="image/app/event.gif"/>活动</h2>
<div class="tabs_header">
<ul class="tabs">
<?php if($ac == 'invite') { ?><li<?=$actives['invite']?>><a href="action.php?ac=invite&do=send&id=<?=$data['id']?>"><span>站外邀请</span></a></li><?php } ?>
<li<?=$actives['index']?>><a href="action.php?ac=index"><span>最新活动</span></a></li>
<li<?=$actives['today']?>><a href="action.php?ac=today"><span>今日活动</span></a></li>
<li<?=$actives['city']?>><a href="action.php?ac=city"><span>同城活动</span></a></li>
<li<?=$actives['my']?>><a href="action.php?ac=my"><span>我的活动</span></a></li>
<li<?=$actives['hot']?>><a href="action.php?ac=hot"><span>最热活动</span></a></li>
<li<?=$actives['ing']?>><a href="action.php?ac=ing"><span>正进行的活动</span></a></li>
<li<?=$actives['finished']?>><a href="action.php?ac=finished"><span>已结束的活动</span></a></li>
<?php if($ac == 'modify') { ?>
<li<?=$actives['modify']?>><a href="action.php?ac=modify&id=<?=$id?>"><span>修改活动</span></a></li>
<?php } else { ?>
<li<?=$actives['add']?>><a href="action.php?ac=add"><span>发起活动</span></a></li>
<?php } ?>
<?php if(ADMIN_UID == $uid) { ?><li<?=$actives['admin']?>><a href="action.php?ac=admin"><span>管理</span></a></li><?php } ?>
</ul>
</div>

<script src="image/editor/editor_function.js" language="javascript"></script>
<script type="text/javascript">
function selected(id, val)
{
var obj = $(id).options;
for(var i=0; i<obj.length;i++){
if(obj[i].value == val){
obj[i].selected = true;
}
}
}
</script>
<div class="h_status"><?php if($ac == 'add') { ?>发起一个新活动<?php } else { ?>修改一个活动<?php } ?></div>
<iframe src="about:blank" style="display:none;" id="add_form" name="add_form"></iframe>
<div class="c_form">
<form id="edit_form" name="edit_form"  method="post" action="action.php?ac=<?=$ac?>&id=<?=$id?>" enctype="multipart/form-data" target="add_form">
<table cellspacing="0" cellpadding="0" class="formtable">
<caption>
<h2><?php if($ac == 'add') { ?>发起一个新活动<?php } else { ?>修改一个活动<?php } ?></h2>
<p>请不要发布政治性活动、广告及其他违反国家法律法规的活动。违反者将会被取消创建活动的功能。 </p>
</caption>
<tr>
<td width="68" valign="top"><strong>活动主题：</strong></td>
<td><input type="text" class="t_input" name="subject" value="<?=$data['subject']?>" size="56" /><br /><span class="tiptext">填写一个主题，如：<u>周末（8月30日）百人爬香山</u></span></td>
</tr>
<tr>
<td valign="top">活动类型：</td>
<td>
<label><input type="radio" name="type" <?php if($data['type'] == 0) { ?>checked<?php } ?> value="0" onclick="$('tr_host').style.display='';" /> 组织发起的活动</label>
<label><input type="radio" name="type" <?php if($data['type'] == 1) { ?>checked<?php } ?>  value="1" onclick="$('tr_host').style.display='none';" /> 个人发起的活动</label>
</td>
</tr>
<tr id="tr_host" style="display:<?php if($data['type'] == 1) { ?>none<?php } ?>;">
<td valign="top">主办方：</td>
<td><input type="text" class="t_input" name="type_company" value="<?=$data['type_company']?>" size="56" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top">举办城市：</td>
<td>
<script type="text/javascript" src="source/script_city.js"></script>
<script type="text/javascript">
showprovince('p', 'c', '<?=$data['p']?>');
showcity('c', '<?=$data['c']?>');
$('p').onchange();
setTimeout(function(){selected('c', '<?=$data['c']?>');}, 100);
</script>
</td>
</tr>
<tr>
<td valign="top">活动地点：</td>
<td><input type="text" class="t_input" name="area" value="<?=$data['area']?>" size="56" /></td>
</tr>
<tr>
<td valign="top">人数上限：</td>
<td><input type="text" class="t_input" name="person_num" value="<?=$data['person_num']?>" size="12" /><br /><span class="tiptext">填写参加该活动的人数上限，填写 0 代表不限制人数</span></td>
</tr>
<tr>
<td valign="top">活动分类：</td>
<td>
<select name="eventtype">
<option value="">请选择活动分类</option>
<?php if(is_array($action_config['eventtype'])) { foreach($action_config['eventtype'] as $val) { ?>
<option value="<?=$val?>" <?php if($val == $data['eventtype']) { ?>selected<?php } ?>><?=$val?></option>
<?php } } ?>
</select>
</td>
</tr>
<tr>
<td valign="top">活动描述：</td>
<td>
<textarea name="description" onkeydown="ctrlEnter(event, 'postsubmit');" id="uchome-ttHtmlEditor"  class="userData" style="border: 0px none ; height: 100%; width: 100%; display: none;"><?=$data['description']?></textarea>
<iframe height="200" frameborder="0" scrolling="no" style="border: 1px solid rgb(197, 197, 197); width: 100%;" border="0" id="uchome-ifrHtmlEditor" name="uchome-ifrHtmlEditor" src="editor.php?charset=<?=$_SC['charset']?>&amp;allowhtml="></iframe>			
</td>
</tr>
<tr>
<td valign="top">开始时间：<br />(<?php if($ac == 'modify') { ?>禁止修改<?php } ?>)</td>
<td>
<select id="beginyear" name="start_time[0]">
<option value="0">无</option>
<option value="2008" selected>2008</option><option value="2009">2009</option>
</select> 年 
<select id="beginmonth" name="start_time[1]">
<option value="0">无</option>
<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11" selected>11</option><option value="12">12</option>
</select> 月 
<select id="beginday" name="start_time[2]">
<option value="0">无</option>
<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8" selected>8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option>
</select> 日 
<select id="beginhour" name="start_time[3]">
<option value="0">无</option>
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13" selected>13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option>
</select> 时
<select id="beginminute" name="start_time[4]">
<option value="0">无</option>
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option><option value="32">32</option><option value="33">33</option><option value="34">34</option><option value="35">35</option><option value="36">36</option><option value="37">37</option><option value="38">38</option><option value="39">39</option><option value="40">40</option><option value="41">41</option><option value="42">42</option><option value="43">43</option><option value="44">44</option><option value="45">45</option><option value="46">46</option><option value="47">47</option><option value="48">48</option><option value="49">49</option><option value="50">50</option><option value="51">51</option><option value="52">52</option><option value="53" selected>53</option><option value="54">54</option><option value="55">55</option><option value="56">56</option><option value="57">57</option><option value="58">58</option><option value="59">59</option>
</select> 分
</td>
</tr>
<tr>
<td valign="top">结束时间：<br />(<?php if($ac == 'modify') { ?>禁止修改<?php } ?>)</td>
<td>
<select id="endyear" name="end_time[0]">
<option value="0">无</option>
<option value="2008" selected>2008</option><option value="2009">2009</option>
</select> 年 
<select id="endmonth" name="end_time[1]">
<option value="0">无</option>
<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11" selected>11</option><option value="12">12</option>
</select> 月 
<select id="endday" name="end_time[2]">
<option value="0">无</option>
<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8" selected>8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option>
</select> 日 
<select id="endhour" name="end_time[3]">
<option value="0">无</option>
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13" selected>13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option>
</select> 时
<select id="endminute" name="end_time[4]">
<option value="0">无</option>
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option><option value="32">32</option><option value="33">33</option><option value="34">34</option><option value="35">35</option><option value="36">36</option><option value="37">37</option><option value="38">38</option><option value="39">39</option><option value="40">40</option><option value="41">41</option><option value="42">42</option><option value="43">43</option><option value="44">44</option><option value="45">45</option><option value="46">46</option><option value="47">47</option><option value="48">48</option><option value="49">49</option><option value="50">50</option><option value="51">51</option><option value="52">52</option><option value="53" selected>53</option><option value="54">54</option><option value="55">55</option><option value="56">56</option><option value="57">57</option><option value="58">58</option><option value="59">59</option>
</select> 分
</td>
</tr>
<tr>
<td valign="top">活动经费：</td>
<td>
<select name="price_type">
<?php if(is_array($action_config['price_type'])) { foreach($action_config['price_type'] as $val) { ?>
<option value="<?=$val?>"  <?php if($val == $data['price_type']) { ?>selected<?php } ?>><?=$val?></option>
<?php } } ?>
</select> 资费说明：<input type="text" class="t_input" name="price_description" value="<?=$data['price_description']?>" size="24" />
</td>
</tr>
<tr>
<td valign="top">集合地点：</td>
<td><input type="text" class="t_input" name="collect_area" value="<?=$data['collect_area']?>" size="56" /></td>
</tr>
<tr>
<td valign="top">联系方式：</td>
<td><input type="text" class="t_input" name="contact" value="<?=$data['contact']?>" size="56" /><br /><span class="tiptext">填写联系人电话，如：<u>张小姐，1346665XXXX</u></span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top">活动选项：</td>
<td>
<?php if($op == 'add') { ?>
<input type="checkbox" name="collect_type[]" id="choice1" value="1"  />
<label for="choice1">只允许我的好友参加该活动</label>
<br />
<input type="checkbox" name="collect_type[]" id="choice2" value="2"  />
<label for="choice2">活动参加人员需要审批</label>
<?php } else { ?>
<input type="checkbox" name="collect_type[]" id="choice1" value="1" <?php if($data['collect_type'] == 1 || $data['collect_type'] == 3) { ?>checked<?php } ?>  />
<label for="choice1">只允许我的好友参加该活动</label>
<br />
<input type="checkbox" name="collect_type[]" id="choice2" value="2" <?php if($data['collect_type'] == 2 || $data['collect_type'] == 3) { ?>checked<?php } ?>  />
<label for="choice2">活动参加人员需要审批</label>
<?php } ?>
</td>
</tr>
<tr>
<td valign="top">活动方式：</td>
<td>
<?php if($data['privite'] != 2) { ?>
<input type="radio" name="privite" <?php if($data['privite'] == 0) { ?>checked<?php } ?> value="0" id="eventmethod1" />
<label class="method_title" for="eventmethod1">这是一个公开的活动</label>
<h5 class="method_intro">
活动信息会出现在活动首页和参与者个人页面，其他人可以通过搜索，查看到这个活动信息。活动创建成功后，将通过事件动态告诉你的好友。有新加入的参与者，活动创建者会收到站内信通知。
</h5>
<input type="radio" name="privite" <?php if($data['privite'] == 1) { ?>checked<?php } ?>   id="eventmethod2" value="1" />
<label class="method_title" for="eventmethod2">这是一个半封闭的活动</label>
<h5 class="method_intro">
活动信息会出现在活动首页和参与者个人页面，其他人可以通过搜索，查看到这个活动信息。参与者只有通过邀请才能参加。活动创建成功后，将通过事件动态告诉你的好友。有新加入的参与者，活动创建者会收到站内信通知。
</h5>
<input type="radio" name="privite" <?php if($data['privite'] == 2) { ?>checked<?php } ?>   id="eventmethod3" value="2" />
<label class="method_title" for="eventmethod3">这是一个私密的活动</label>
<h5 class="method_intro">
活动信息不会出现在活动首页和参与者个人页面，也不会被搜索到。活动只能通过发起人邀请才能参加。被邀请者加入活动，活动创建者收到站内信通知。活动创建成功后，不会通过事件动态告诉你的好友。（提交后不可更改）
</h5>
<?php } else { ?>
<input type="hidden" name="privite" id="eventmethod3" value="2" />
<label class="method_title" for="eventmethod3">这是一个私密的活动</label>
<h5 class="method_intro">
活动信息不会出现在活动首页和参与者个人页面，也不会被搜索到。活动只能通过发起人邀请才能参加。被邀请者加入活动，活动创建者收到站内信通知。活动创建成功后，不会通过事件动态告诉你的好友。（提交后不可更改）
</h5>
<?php } ?>

</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top">活动海报：</td>
<td>
<input type="file" name="picture" size="40" />
<br /><span class="tiptext">请选择一张合适的图片作为活动封面海报（文件类型只支持GIF,JPG,PNG）</span>
<?php if($ac == 'modify') { ?><br /><span class="tiptext">不上传新的海报，则表示使用先前上传的海报</span><?php } ?>
</td>
</tr>
<tr>
<td> </td>
<td><br />
<input type="hidden" name="myFormAc" value="update"/>
<input type="button" id="postsubmit" value="确定发布" class="submit" onclick="base.alert('数据提交中','<p class=loading>提交中，请等待.......</p>');edit_save(this);document.forms['edit_form'].submit();"/><br /><br />
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
selected('beginyear', <?=$start['0']?>);
selected('beginmonth', <?=$start['1']?>);
selected('beginday', <?=$start['2']?>);
selected('beginhour', <?=$start['3']?>);
selected('beginminute', <?=$start['4']?>);
selected('endyear', <?=$end['0']?>);
selected('endmonth', <?=$end['1']?>);
selected('endday', <?=$end['2']?>);
selected('endhour', <?=$end['3']?>);
selected('endminute', <?=$end['4']?>);
</script>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<?php if(empty($_TPL['nosidebar'])) { ?>
</div>
<!--/mainarea-->
<div id="bottom"></div>
</div>
<!--/main-->
<?php } ?>

<div id="footer" title="<?php echo debuginfo(); ?>">

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
<p>
Powered by <a  href="http://u.discuz.net" target="_blank"><strong>UCenter Home</strong></a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
&copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>

</body>
</html>
<?php } ?><?php ob_out();?>